﻿<%@ OutputCache Location="None" %>

<%@ Page Language="c#" CodeBehind="SelectEngineerForm.aspx.cs" AutoEventWireup="false"
    Inherits="BEGDC.CC.Web.Workflow.SelectEngineerForm" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title id="title">Alcatel-Lucent Employee Picker</title>
    <base target="_self">
    <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
    <meta content="C#" name="CODE_LANGUAGE">
    <meta content="JavaScript" name="vs_defaultClientScript">
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <%--     <link href="../css/Standard.css" type="text/css" rel="stylesheet">
    <link href="../CSS/style.css" type="text/css" rel="stylesheet">--%>
    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../css/style.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery-1.4.4.min.js" type="text/javascript"></script>

    <script language="javascript">
		<!--
        window.returnValue = "";

        function Do_Comfirm() {
            window.returnValue = document.Form1.engineerName.value;
            window.close();
        }

        function Do_Cancel() {
            window.close();
        }

        function document.onkeydown() {
            var e = event.srcElement;
            if (event.keyCode == 13) {
                document.getElementById("Search").click();
                return false;
            }
        }
        //-->
        //$(function() {
        //window.resizeTo(370, 340);
        //});
    </script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div align="center">
        <table width="340" border="0">
            <tr class="ev-row2">
                <td class="title" style="font: messagebox; width: 150px">
                    &nbsp;Department:<br />
                    部门
                </td>
                <td class="val" style="font: messagebox">
                    <asp:DropDownList ID="Department" runat="server" AutoPostBack="False" Width="120px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class="ev-row2" id="TR_Branch" runat="server">
                <td class="title" style="font: messagebox; height: 13px">
                    Branch:<br />
                    请选择贵区域代码
                </td>
                <td class="val" style="font: messagebox; height: 13px">
                    <asp:DropDownList ID="Branch" runat="server" Width="120px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class="ev-row2">
                <td class="title" style="font: messagebox">
                    Name:<br />
                    员工名称
                </td>
                <td class="val" style="font: messagebox">
                    <asp:TextBox ID="NameBox" runat="server" Width="120px" CssClass="TEXTBOX"></asp:TextBox>&nbsp;
                    <asp:ResourceButton ID="Search" runat="server" CssClass="btn" Text="Search" ToolTip="SearchTips"
                        OnClick="Search_Click" />
                </td>
            </tr>
            <tr class="ev-row2">
                <td class="title" id="TD_Information" style="font: messagebox" colspan="2" height="10"
                    runat="server">
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="illegal name (员工名称输入非法)"
                        ControlToValidate="NameBox" ValidationExpression="[A-Za-z]*\s*\.?\s*[A-Za-z]*\.?\s*[A-Za-z]*"
                        Display="Dynamic"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="NameBox"
                        ErrorMessage="Please enter the name (请输入员工名称)" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td id="TD_Choose" style="font: messagebox" colspan="2" height="10" runat="server">
                </td>
            </tr>
            <tr class="ev-row2">
                <td colspan="2">
                    <table>
                        <tr>
                            <td align="center">
                                <select id="engineerName" style="font: messagebox; width: 260px; height: 176px" size="11"
                                    name="engineerName" runat="server">
                                    <%--ondblclick="Do_Comfirm();"--%>
                                </select>
                            </td>
                            <td style="font: messagebox; width: 201px" valign="top" align="center">
                                <%-- <input class="btn" id="btnOK" onclick="Do_Comfirm();" type="button" title="" value="&nbsp;&nbsp;&nbsp;OK&nbsp;&nbsp;&nbsp;" />--%>
                                <asp:ResourceButton ID="btnOK" runat="server" ToolTip="OKTips" CssClass="btn" Text="OK"
                                    Width="68" />
                                <br />
                                <%-- <input class="btn" id="btnCancel" onclick="Do_Cancel()" type="button" value="Cancel"
                                    title="CancelTips" />--%>
                                <asp:ResourceButton ID="btnCancel" runat="server" ToolTip="CancelTips" CssClass="btn"
                                    Text="Cancel" Width="68" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:Literal ID="litScript" runat="server" Visible="False"></asp:Literal></form>
</body>
</html>
